package cn.wolfcode.service;

import cn.wolfcode.domain.Role;
import cn.wolfcode.result.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {
    void delete(Long id);

    void save(Role record,Long[] ids);

    Role selectById(Long id);

    List<Role> selectAll();

    void update(Role record, Long[] ids);

    PageInfo<Role> query(QueryObject qo);

    /**
     * 根据id查询员工所有角色
     */
    List<Role> selectRoleById(Long id);

    /**
     * 根据员工id
     */
    List<String> selectSnsByEmployeeId(Long id);
}
